import App from './App'
import Vue from 'vue'
import store from './store'
import Cache from './utils/cache'
import util from './utils/utils'
import ad from '@/components/ad/ad.vue'

import './uni.promisify.adaptor'

// 全局mixins，用于实现setData等功能，请勿删除！';
import zpMixins from '@/uni_modules/zp-mixins/index.js';

Vue.config.productionTip = false
App.mpType = 'app'

Vue.prototype.$cache = Cache;
Vue.prototype.$util = util;

import share from '@/utils/share.js'
Vue.mixin(share)
Vue.use(zpMixins);
import uView from '@/uni_modules/uview-ui'
import '@/style/common.scss'
Vue.use(uView);
Vue.component('lAd',ad)

const app = new Vue({
	store,
	...App
})

// 引入请求封装，将app参数传递到配置中
require('@/config/request.js')(app);
app.$mount()